import { defineStore } from 'pinia'
import { getProductList } from '@/api/product'

export const useproductStore = defineStore('product123', {
  state: () => {
    return {
      productList: {
        id: '',
        picUrl: '',
        mainTitle: '',
        viceTitle: '',
      },
    }
  },
  actions: {
    async getProductLsitData() {
      try {
        const res = await getProductList()
        console.log(res, '123')
      } catch (error) {
        console.log(error, 'err')
      }
    },
  },
  getters: {},
})
